package com.example.jf.jfapp.utils;

/**
 * 位置：
 * 作用：
 * 时间：2017/7/26
 */

public class Constant {

    /**
    *内容：存储app所有的接口地址
    **/
    public static class URL {
        //https://leancloud.cn:443/1.1/login
        public final static String BASE = "https://leancloud.cn:443/1.1/";
        public final static String BASE_FUNCTIONS = "https://leancloud.cn:443/1.1/functions/";
        public final static String USER_LOGIN="https://leancloud.cn:443/1.1/login";
        public final static String USER_REGIST="https://leancloud.cn:443/1.1/users";
//获取状态列表
        public  final  static  String GETSTATUS=BASE_FUNCTIONS+"getStatus";
        //发布动态
        public  final  static String SHARESTATU=BASE_FUNCTIONS+"shareStatu";
        public final static String INFORMATION="https://leancloud.cn/1.1/functions/getJfInfoList";
        public final static String GETMEINFO="https://leancloud.cn:443/1.1/functions/getMeInFo";
        public final static String UPDATEMEHEADPROTRAIT="https://leancloud.cn:443/1.1/functions/updateMeheadProtrait";


        public final static String BLOG_LIST="https://leancloud.cn:443/1.1/functions/getBlogList";

        public final static String BLOG_COMMENT="https://leancloud.cn:443/1.1/functions/getBlogComments";
        public  final  static  String SENDCOMMENT1="https://leancloud.cn:443/1.1/functions/publishComment";
        public  final  static  String GETCOMMENTS1=BASE_FUNCTIONS+"getComments";
        public final  static  String PRAISE=BASE_FUNCTIONS+"praise";
       //获取其他人的用户信息
        public  final  static  String GETOTHERUSERSTATUS=BASE_FUNCTIONS+"getOthersInfo";
        //获取个人动态
        public final static String GETUSERSTATUS = BASE_FUNCTIONS + "getUserStatus";

        /**
         * 获取取消关注&关注 Url
         *
         * @param userId
         * @param targetId
         * @return
         */
        public static String getAttentionUrl(String userId, String targetId) {
            return "https://leancloud.cn:443/1.1/users/" + userId + "/friendship/" + targetId;
        }

        //更新用户地理位置
        public final static String UPDATELOCATION = BASE_FUNCTIONS + "updateLocation";
        //获取附件的用户
        public final static String GETNEARUSER = BASE_FUNCTIONS + "getUserList";





        //发布评论
        public final static String BLOG_EDIT_COMMENT="https://leancloud.cn:443/1.1/functions/commetnBlog";



public  final  static  String SENDCOMMENT=BASE_FUNCTIONS+"publishComment";
    public  final  static  String GETCOMMENTS=BASE_FUNCTIONS+"getComments";
        //收藏博客
        public  final  static  String COLLBLOG="https://leancloud.cn:443/1.1/functions/addCollection";

    }
}
